<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cryptic Cabinet: CrypticCabinet.Photon.PhotonConnector Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="Logo 100x100px.png"/></td>
  <td id="projectalign">
   <div id="projectname">Cryptic Cabinet
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">CrypticCabinet.Photon.PhotonConnector Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Manages network connection between the App and the Photon Fusion cloud services. When in a multiplayer session, it is possible to connect as the main player responsible for the scene configuration (Host), or as guest with colocation (Join).  
 <a href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for CrypticCabinet.Photon.PhotonConnector:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4fd92e9b644ee2ecbda78d87362f35f0" id="r_a4fd92e9b644ee2ecbda78d87362f35f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a4fd92e9b644ee2ecbda78d87362f35f0">StartSinglePlayerSession</a> ()</td></tr>
<tr class="memdesc:a4fd92e9b644ee2ecbda78d87362f35f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles single player flow: the player is the only one in the game session, and none else can join. The room name is randomly generated.  <br /></td></tr>
<tr class="separator:a4fd92e9b644ee2ecbda78d87362f35f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63df86d8cf8a6ee898f373423f32054e" id="r_a63df86d8cf8a6ee898f373423f32054e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a63df86d8cf8a6ee898f373423f32054e">StartMultiplayerSession</a> ()</td></tr>
<tr class="memdesc:a63df86d8cf8a6ee898f373423f32054e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles multiplayer flow: the UI to choose Host or Guest is shown. Host shows a randomly generated 6 digit room name, which can be communicated to guests. Guests will be able to specify the desired room name and join.  <br /></td></tr>
<tr class="separator:a63df86d8cf8a6ee898f373423f32054e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab985a7c98e8fffb3d7b5022408bb75e1" id="r_ab985a7c98e8fffb3d7b5022408bb75e1"><td class="memItemLeft" align="right" valign="top">async Task&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ab985a7c98e8fffb3d7b5022408bb75e1">Shutdown</a> ()</td></tr>
<tr class="memdesc:ab985a7c98e8fffb3d7b5022408bb75e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shutdown the previous runner and destroy it.  <br /></td></tr>
<tr class="separator:ab985a7c98e8fffb3d7b5022408bb75e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4372a8aba2335e781df0543d78adefa2" id="r_a4372a8aba2335e781df0543d78adefa2"><td class="memItemLeft" align="right" valign="top">async Task&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a4372a8aba2335e781df0543d78adefa2">DisconnectFromRoom</a> ()</td></tr>
<tr class="memdesc:a4372a8aba2335e781df0543d78adefa2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disconnects the current player from the active room. Note: this can also be triggered via editor using the context menu.  <br /></td></tr>
<tr class="separator:a4372a8aba2335e781df0543d78adefa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad464f5ee82848d8b05a36f9a717a9a8a" id="r_ad464f5ee82848d8b05a36f9a717a9a8a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ad464f5ee82848d8b05a36f9a717a9a8a">ShowNetworkSelectionMenu</a> ()</td></tr>
<tr class="separator:ad464f5ee82848d8b05a36f9a717a9a8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab219cf411054df883005fffc50f64991" id="r_ab219cf411054df883005fffc50f64991"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ab219cf411054df883005fffc50f64991">IsMasterClient</a> ()</td></tr>
<tr class="memdesc:ab219cf411054df883005fffc50f64991"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the local player is Host (multiplayer) or the main player of a single player session.  <br /></td></tr>
<tr class="separator:ab219cf411054df883005fffc50f64991"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab58450175d312e6153d749eeba83c334" id="r_ab58450175d312e6153d749eeba83c334"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ab58450175d312e6153d749eeba83c334">HostDisconnectAllFromRoom</a> ()</td></tr>
<tr class="memdesc:ab58450175d312e6153d749eeba83c334"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disconnects all the guests of the current room, destroying the current game session. This should be called when the Host disconnects from a game, so that all remaining guest users will not be stuck inside it.  <br /></td></tr>
<tr class="separator:ab58450175d312e6153d749eeba83c334"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a009673786ccbf8b91d32b6566d759354" id="r_a009673786ccbf8b91d32b6566d759354"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a009673786ccbf8b91d32b6566d759354">HostAllowGuests</a> ()</td></tr>
<tr class="memdesc:a009673786ccbf8b91d32b6566d759354"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allows new Guest users to join the current game session (if any).  <br /></td></tr>
<tr class="separator:a009673786ccbf8b91d32b6566d759354"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52aabee9d8f78f9fa7cf209459590992" id="r_a52aabee9d8f78f9fa7cf209459590992"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a52aabee9d8f78f9fa7cf209459590992">HostForbidGuests</a> ()</td></tr>
<tr class="memdesc:a52aabee9d8f78f9fa7cf209459590992"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forbids new Guest users from joining the current game session (if any).  <br /></td></tr>
<tr class="separator:a52aabee9d8f78f9fa7cf209459590992"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bce11842b16758a9b17f362af1eabe6" id="r_a7bce11842b16758a9b17f362af1eabe6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bce11842b16758a9b17f362af1eabe6">GuestLeaveLobby</a> ()</td></tr>
<tr class="memdesc:a7bce11842b16758a9b17f362af1eabe6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call this function if the Guest wants to leave the lobby.  <br /></td></tr>
<tr class="separator:a7bce11842b16758a9b17f362af1eabe6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03efb7afd212bfab05fa4ae1e75c99c7" id="r_a03efb7afd212bfab05fa4ae1e75c99c7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a03efb7afd212bfab05fa4ae1e75c99c7">OnPlayerJoined</a> (NetworkRunner runner, PlayerRef player)</td></tr>
<tr class="separator:a03efb7afd212bfab05fa4ae1e75c99c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80c13a8160cb55f9e28f3bf52734fe21" id="r_a80c13a8160cb55f9e28f3bf52734fe21"><td class="memItemLeft" align="right" valign="top">async void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a80c13a8160cb55f9e28f3bf52734fe21">OnPlayerLeft</a> (NetworkRunner runner, PlayerRef player)</td></tr>
<tr class="separator:a80c13a8160cb55f9e28f3bf52734fe21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf855e3247496068e915785dbca626e2" id="r_aaf855e3247496068e915785dbca626e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#aaf855e3247496068e915785dbca626e2">OnInput</a> (NetworkRunner runner, NetworkInput input)</td></tr>
<tr class="separator:aaf855e3247496068e915785dbca626e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7094ee478dccff397c53141212668668" id="r_a7094ee478dccff397c53141212668668"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7094ee478dccff397c53141212668668">OnInputMissing</a> (NetworkRunner runner, PlayerRef player, NetworkInput input)</td></tr>
<tr class="separator:a7094ee478dccff397c53141212668668"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a01222c2f24415838b4a7c6c01d5cb7" id="r_a8a01222c2f24415838b4a7c6c01d5cb7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a8a01222c2f24415838b4a7c6c01d5cb7">OnShutdown</a> (NetworkRunner runner, ShutdownReason shutdownReason)</td></tr>
<tr class="separator:a8a01222c2f24415838b4a7c6c01d5cb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88863ebf0fd793ed1caf56f8c0fe3cb9" id="r_a88863ebf0fd793ed1caf56f8c0fe3cb9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a88863ebf0fd793ed1caf56f8c0fe3cb9">OnConnectedToServer</a> (NetworkRunner runner)</td></tr>
<tr class="separator:a88863ebf0fd793ed1caf56f8c0fe3cb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03d01abb55ef26f43ecfe6bbd978b0a4" id="r_a03d01abb55ef26f43ecfe6bbd978b0a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a03d01abb55ef26f43ecfe6bbd978b0a4">OnDisconnectedFromServer</a> (NetworkRunner runner)</td></tr>
<tr class="separator:a03d01abb55ef26f43ecfe6bbd978b0a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a835a89eac1834d72b874c53e16b50bf6" id="r_a835a89eac1834d72b874c53e16b50bf6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a835a89eac1834d72b874c53e16b50bf6">OnConnectRequest</a> (NetworkRunner runner, NetworkRunnerCallbackArgs.ConnectRequest request, byte[] token)</td></tr>
<tr class="separator:a835a89eac1834d72b874c53e16b50bf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac90c4a1bbde8c74422b96c2d224daeb8" id="r_ac90c4a1bbde8c74422b96c2d224daeb8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ac90c4a1bbde8c74422b96c2d224daeb8">OnConnectFailed</a> (NetworkRunner runner, NetAddress remoteAddress, NetConnectFailedReason reason)</td></tr>
<tr class="separator:ac90c4a1bbde8c74422b96c2d224daeb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa518c58f2f67974a2705cdecc20a6ea3" id="r_aa518c58f2f67974a2705cdecc20a6ea3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#aa518c58f2f67974a2705cdecc20a6ea3">OnUserSimulationMessage</a> (NetworkRunner runner, SimulationMessagePtr message)</td></tr>
<tr class="separator:aa518c58f2f67974a2705cdecc20a6ea3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2638cfc2825008c4997e4f2f9e56f1b" id="r_af2638cfc2825008c4997e4f2f9e56f1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#af2638cfc2825008c4997e4f2f9e56f1b">OnSessionListUpdated</a> (NetworkRunner runner, List&lt; SessionInfo &gt; sessionList)</td></tr>
<tr class="separator:af2638cfc2825008c4997e4f2f9e56f1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad898e7321039e16254ea247233df6c52" id="r_ad898e7321039e16254ea247233df6c52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ad898e7321039e16254ea247233df6c52">OnCustomAuthenticationResponse</a> (NetworkRunner runner, Dictionary&lt; string, object &gt; data)</td></tr>
<tr class="separator:ad898e7321039e16254ea247233df6c52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b28c850136a424d94644b640c72adc9" id="r_a8b28c850136a424d94644b640c72adc9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a8b28c850136a424d94644b640c72adc9">OnHostMigration</a> (NetworkRunner runner, HostMigrationToken hostMigrationToken)</td></tr>
<tr class="separator:a8b28c850136a424d94644b640c72adc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08ccd89d68d19ccaa33eb97b10468751" id="r_a08ccd89d68d19ccaa33eb97b10468751"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a08ccd89d68d19ccaa33eb97b10468751">OnReliableDataReceived</a> (NetworkRunner runner, PlayerRef player, ArraySegment&lt; byte &gt; data)</td></tr>
<tr class="separator:a08ccd89d68d19ccaa33eb97b10468751"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c8557afcca92a062d04eb745fac08e2" id="r_a2c8557afcca92a062d04eb745fac08e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a2c8557afcca92a062d04eb745fac08e2">OnSceneLoadDone</a> (NetworkRunner runner)</td></tr>
<tr class="separator:a2c8557afcca92a062d04eb745fac08e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65d511692df36c7bad27aa545d60efbc" id="r_a65d511692df36c7bad27aa545d60efbc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a65d511692df36c7bad27aa545d60efbc">OnSceneLoadStart</a> (NetworkRunner runner)</td></tr>
<tr class="separator:a65d511692df36c7bad27aa545d60efbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa3c7e353cadf24f7d2f7a9773e7c9c05" id="r_aa3c7e353cadf24f7d2f7a9773e7c9c05"><td class="memItemLeft" align="right" valign="top">UnityEvent&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#aa3c7e353cadf24f7d2f7a9773e7c9c05">OnHostMigrationOccured</a></td></tr>
<tr class="memdesc:aa3c7e353cadf24f7d2f7a9773e7c9c05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Occurs when a Host has changed and a new Runner needs to replace the old one.  <br /></td></tr>
<tr class="separator:aa3c7e353cadf24f7d2f7a9773e7c9c05"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a4ea4d5ef75e0a434d0960f538bc89aca" id="r_a4ea4d5ef75e0a434d0960f538bc89aca"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a4ea4d5ef75e0a434d0960f538bc89aca">JoinedActiveGameSession</a><code> [get]</code></td></tr>
<tr class="separator:a4ea4d5ef75e0a434d0960f538bc89aca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bc2743b95743bcb836ead71ee47b2e9" id="r_a7bc2743b95743bcb836ead71ee47b2e9"><td class="memItemLeft" align="right" valign="top">NetworkRunner&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bc2743b95743bcb836ead71ee47b2e9">Runner</a><code> [get]</code></td></tr>
<tr class="memdesc:a7bc2743b95743bcb836ead71ee47b2e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Runner that handles all communication between this App and Photon Fusion servers.  <br /></td></tr>
<tr class="separator:a7bc2743b95743bcb836ead71ee47b2e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa28eb3247fd924a62bedab21c5eb15a5" id="r_aa28eb3247fd924a62bedab21c5eb15a5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#aa28eb3247fd924a62bedab21c5eb15a5">IsMultiplayerSession</a><code> [get]</code></td></tr>
<tr class="memdesc:aa28eb3247fd924a62bedab21c5eb15a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if the current session is multiplayer. False if the current session is single player.  <br /></td></tr>
<tr class="separator:aa28eb3247fd924a62bedab21c5eb15a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Manages network connection between the App and the Photon Fusion cloud services. When in a multiplayer session, it is possible to connect as the main player responsible for the scene configuration (Host), or as guest with colocation (Join). </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a4372a8aba2335e781df0543d78adefa2" name="a4372a8aba2335e781df0543d78adefa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4372a8aba2335e781df0543d78adefa2">&#9670;&#160;</a></span>DisconnectFromRoom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">async Task CrypticCabinet.Photon.PhotonConnector.DisconnectFromRoom </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disconnects the current player from the active room. Note: this can also be triggered via editor using the context menu. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a4ea4d5ef75e0a434d0960f538bc89aca">CrypticCabinet.Photon.PhotonConnector.JoinedActiveGameSession</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bc2743b95743bcb836ead71ee47b2e9">CrypticCabinet.Photon.PhotonConnector.Runner</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_in_game_menu.html#aa2981b11014d69731ac0deaf8f266094">CrypticCabinet.UI.Modal.InGameMenu.QuitToMainMenu()</a>.</p>

</div>
</div>
<a id="a7bce11842b16758a9b17f362af1eabe6" name="a7bce11842b16758a9b17f362af1eabe6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bce11842b16758a9b17f362af1eabe6">&#9670;&#160;</a></span>GuestLeaveLobby()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.GuestLeaveLobby </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Call this function if the Guest wants to leave the lobby. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a4ea4d5ef75e0a434d0960f538bc89aca">CrypticCabinet.Photon.PhotonConnector.JoinedActiveGameSession</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bc2743b95743bcb836ead71ee47b2e9">CrypticCabinet.Photon.PhotonConnector.Runner</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#af2638cfc2825008c4997e4f2f9e56f1b">CrypticCabinet.Photon.PhotonConnector.OnSessionListUpdated()</a>.</p>

</div>
</div>
<a id="a009673786ccbf8b91d32b6566d759354" name="a009673786ccbf8b91d32b6566d759354"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a009673786ccbf8b91d32b6566d759354">&#9670;&#160;</a></span>HostAllowGuests()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.HostAllowGuests </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allows new Guest users to join the current game session (if any). </p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_wait_for_guests_1_1_wait_for_guests_phase.html#ad952e36894cd930e039cf5121065ebce">CrypticCabinet.GameManagement.WaitForGuests.WaitForGuestsPhase.InitializeInternal()</a>.</p>

</div>
</div>
<a id="ab58450175d312e6153d749eeba83c334" name="ab58450175d312e6153d749eeba83c334"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab58450175d312e6153d749eeba83c334">&#9670;&#160;</a></span>HostDisconnectAllFromRoom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.HostDisconnectAllFromRoom </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disconnects all the guests of the current room, destroying the current game session. This should be called when the Host disconnects from a game, so that all remaining guest users will not be stuck inside it. </p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_intro_outro_1_1_act_three_multi_user_manager.html#a7b913d8aaa1a88f1ed29e9932fc0c52a">CrypticCabinet.IntroOutro.ActThreeMultiUserManager.OnActThreeComplete()</a>.</p>

</div>
</div>
<a id="a52aabee9d8f78f9fa7cf209459590992" name="a52aabee9d8f78f9fa7cf209459590992"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52aabee9d8f78f9fa7cf209459590992">&#9670;&#160;</a></span>HostForbidGuests()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.HostForbidGuests </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forbids new Guest users from joining the current game session (if any). </p>

</div>
</div>
<a id="ab219cf411054df883005fffc50f64991" name="ab219cf411054df883005fffc50f64991"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab219cf411054df883005fffc50f64991">&#9670;&#160;</a></span>IsMasterClient()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CrypticCabinet.Photon.PhotonConnector.IsMasterClient </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if the local player is Host (multiplayer) or the main player of a single player session. </p>
<dl class="section return"><dt>Returns</dt><dd>True if the local player is Host in multiplayer, or in single player mode.</dd></dl>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bc2743b95743bcb836ead71ee47b2e9">CrypticCabinet.Photon.PhotonConnector.Runner</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_room_setup_1_1_object_spawning_logic_phase.html#a0f3008845842c5645829a55b99395749">CrypticCabinet.GameManagement.RoomSetup.ObjectSpawningLogicPhase.InitializeInternal()</a>, <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_wait_for_guests_1_1_wait_for_guests_phase.html#ad952e36894cd930e039cf5121065ebce">CrypticCabinet.GameManagement.WaitForGuests.WaitForGuestsPhase.InitializeInternal()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a88863ebf0fd793ed1caf56f8c0fe3cb9">CrypticCabinet.Photon.PhotonConnector.OnConnectedToServer()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#af2638cfc2825008c4997e4f2f9e56f1b">CrypticCabinet.Photon.PhotonConnector.OnSessionListUpdated()</a>.</p>

</div>
</div>
<a id="a88863ebf0fd793ed1caf56f8c0fe3cb9" name="a88863ebf0fd793ed1caf56f8c0fe3cb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88863ebf0fd793ed1caf56f8c0fe3cb9">&#9670;&#160;</a></span>OnConnectedToServer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnConnectedToServer </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ab219cf411054df883005fffc50f64991">CrypticCabinet.Photon.PhotonConnector.IsMasterClient()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_u_i_system.html#ade367d4dfdaf1261f21fd556d6f7820a">CrypticCabinet.UI.UISystem.ShowMessage()</a>.</p>

</div>
</div>
<a id="ac90c4a1bbde8c74422b96c2d224daeb8" name="ac90c4a1bbde8c74422b96c2d224daeb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac90c4a1bbde8c74422b96c2d224daeb8">&#9670;&#160;</a></span>OnConnectFailed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnConnectFailed </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NetAddress&#160;</td>
          <td class="paramname"><em>remoteAddress</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NetConnectFailedReason&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a835a89eac1834d72b874c53e16b50bf6" name="a835a89eac1834d72b874c53e16b50bf6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a835a89eac1834d72b874c53e16b50bf6">&#9670;&#160;</a></span>OnConnectRequest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnConnectRequest </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NetworkRunnerCallbackArgs::ConnectRequest&#160;</td>
          <td class="paramname"><em>request</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>token</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad898e7321039e16254ea247233df6c52" name="ad898e7321039e16254ea247233df6c52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad898e7321039e16254ea247233df6c52">&#9670;&#160;</a></span>OnCustomAuthenticationResponse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnCustomAuthenticationResponse </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Dictionary&lt; string, object &gt;&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a03d01abb55ef26f43ecfe6bbd978b0a4" name="a03d01abb55ef26f43ecfe6bbd978b0a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03d01abb55ef26f43ecfe6bbd978b0a4">&#9670;&#160;</a></span>OnDisconnectedFromServer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnDisconnectedFromServer </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8b28c850136a424d94644b640c72adc9" name="a8b28c850136a424d94644b640c72adc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b28c850136a424d94644b640c72adc9">&#9670;&#160;</a></span>OnHostMigration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnHostMigration </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HostMigrationToken&#160;</td>
          <td class="paramname"><em>hostMigrationToken</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aaf855e3247496068e915785dbca626e2" name="aaf855e3247496068e915785dbca626e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf855e3247496068e915785dbca626e2">&#9670;&#160;</a></span>OnInput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnInput </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NetworkInput&#160;</td>
          <td class="paramname"><em>input</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7094ee478dccff397c53141212668668" name="a7094ee478dccff397c53141212668668"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7094ee478dccff397c53141212668668">&#9670;&#160;</a></span>OnInputMissing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnInputMissing </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PlayerRef&#160;</td>
          <td class="paramname"><em>player</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NetworkInput&#160;</td>
          <td class="paramname"><em>input</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a03efb7afd212bfab05fa4ae1e75c99c7" name="a03efb7afd212bfab05fa4ae1e75c99c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03efb7afd212bfab05fa4ae1e75c99c7">&#9670;&#160;</a></span>OnPlayerJoined()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnPlayerJoined </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PlayerRef&#160;</td>
          <td class="paramname"><em>player</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a80c13a8160cb55f9e28f3bf52734fe21" name="a80c13a8160cb55f9e28f3bf52734fe21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80c13a8160cb55f9e28f3bf52734fe21">&#9670;&#160;</a></span>OnPlayerLeft()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">async void CrypticCabinet.Photon.PhotonConnector.OnPlayerLeft </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PlayerRef&#160;</td>
          <td class="paramname"><em>player</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a08ccd89d68d19ccaa33eb97b10468751" name="a08ccd89d68d19ccaa33eb97b10468751"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08ccd89d68d19ccaa33eb97b10468751">&#9670;&#160;</a></span>OnReliableDataReceived()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnReliableDataReceived </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PlayerRef&#160;</td>
          <td class="paramname"><em>player</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ArraySegment&lt; byte &gt;&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2c8557afcca92a062d04eb745fac08e2" name="a2c8557afcca92a062d04eb745fac08e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c8557afcca92a062d04eb745fac08e2">&#9670;&#160;</a></span>OnSceneLoadDone()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnSceneLoadDone </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#aa28eb3247fd924a62bedab21c5eb15a5">CrypticCabinet.Photon.PhotonConnector.IsMultiplayerSession</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bc2743b95743bcb836ead71ee47b2e9">CrypticCabinet.Photon.PhotonConnector.Runner</a>.</p>

</div>
</div>
<a id="a65d511692df36c7bad27aa545d60efbc" name="a65d511692df36c7bad27aa545d60efbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65d511692df36c7bad27aa545d60efbc">&#9670;&#160;</a></span>OnSceneLoadStart()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnSceneLoadStart </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af2638cfc2825008c4997e4f2f9e56f1b" name="af2638cfc2825008c4997e4f2f9e56f1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2638cfc2825008c4997e4f2f9e56f1b">&#9670;&#160;</a></span>OnSessionListUpdated()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnSessionListUpdated </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; SessionInfo &gt;&#160;</td>
          <td class="paramname"><em>sessionList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bce11842b16758a9b17f362af1eabe6">CrypticCabinet.Photon.PhotonConnector.GuestLeaveLobby()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ab219cf411054df883005fffc50f64991">CrypticCabinet.Photon.PhotonConnector.IsMasterClient()</a>, <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_u_i_system.html#ade367d4dfdaf1261f21fd556d6f7820a">CrypticCabinet.UI.UISystem.ShowMessage()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ad464f5ee82848d8b05a36f9a717a9a8a">CrypticCabinet.Photon.PhotonConnector.ShowNetworkSelectionMenu()</a>.</p>

</div>
</div>
<a id="a8a01222c2f24415838b4a7c6c01d5cb7" name="a8a01222c2f24415838b4a7c6c01d5cb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a01222c2f24415838b4a7c6c01d5cb7">&#9670;&#160;</a></span>OnShutdown()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnShutdown </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ShutdownReason&#160;</td>
          <td class="paramname"><em>shutdownReason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa518c58f2f67974a2705cdecc20a6ea3" name="aa518c58f2f67974a2705cdecc20a6ea3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa518c58f2f67974a2705cdecc20a6ea3">&#9670;&#160;</a></span>OnUserSimulationMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.OnUserSimulationMessage </td>
          <td>(</td>
          <td class="paramtype">NetworkRunner&#160;</td>
          <td class="paramname"><em>runner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SimulationMessagePtr&#160;</td>
          <td class="paramname"><em>message</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad464f5ee82848d8b05a36f9a717a9a8a" name="ad464f5ee82848d8b05a36f9a717a9a8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad464f5ee82848d8b05a36f9a717a9a8a">&#9670;&#160;</a></span>ShowNetworkSelectionMenu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.ShowNetworkSelectionMenu </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.html#ad7adf06c8c5f0549ca307c8aaf7ee7c7">CrypticCabinet.UI.Modal.MultiplayerMenu.OnJoinClicked()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#af2638cfc2825008c4997e4f2f9e56f1b">CrypticCabinet.Photon.PhotonConnector.OnSessionListUpdated()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a63df86d8cf8a6ee898f373423f32054e">CrypticCabinet.Photon.PhotonConnector.StartMultiplayerSession()</a>.</p>

</div>
</div>
<a id="ab985a7c98e8fffb3d7b5022408bb75e1" name="ab985a7c98e8fffb3d7b5022408bb75e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab985a7c98e8fffb3d7b5022408bb75e1">&#9670;&#160;</a></span>Shutdown()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">async Task CrypticCabinet.Photon.PhotonConnector.Shutdown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Shutdown the previous runner and destroy it. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bc2743b95743bcb836ead71ee47b2e9">CrypticCabinet.Photon.PhotonConnector.Runner</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_credits.html#ae56c43d3e5291babdfa475658d031aa6">CrypticCabinet.UI.Modal.Credits.OnBackClicked()</a>.</p>

</div>
</div>
<a id="a63df86d8cf8a6ee898f373423f32054e" name="a63df86d8cf8a6ee898f373423f32054e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63df86d8cf8a6ee898f373423f32054e">&#9670;&#160;</a></span>StartMultiplayerSession()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.StartMultiplayerSession </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Handles multiplayer flow: the UI to choose Host or Guest is shown. Host shows a randomly generated 6 digit room name, which can be communicated to guests. Guests will be able to specify the desired room name and join. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#aa28eb3247fd924a62bedab21c5eb15a5">CrypticCabinet.Photon.PhotonConnector.IsMultiplayerSession</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ad464f5ee82848d8b05a36f9a717a9a8a">CrypticCabinet.Photon.PhotonConnector.ShowNetworkSelectionMenu()</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_main_menu.html#acdb1186fd0973660177c63885e6526fa">CrypticCabinet.UI.Modal.MainMenu.OnMultiplayerPressed()</a>.</p>

</div>
</div>
<a id="a4fd92e9b644ee2ecbda78d87362f35f0" name="a4fd92e9b644ee2ecbda78d87362f35f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fd92e9b644ee2ecbda78d87362f35f0">&#9670;&#160;</a></span>StartSinglePlayerSession()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.Photon.PhotonConnector.StartSinglePlayerSession </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Handles single player flow: the player is the only one in the game session, and none else can join. The room name is randomly generated. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_utils_1_1_room_name_generator.html#a19299929f787a3f0b14ee403a647ded2">CrypticCabinet.Photon.Utils.RoomNameGenerator.GenerateRoom()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#aa28eb3247fd924a62bedab21c5eb15a5">CrypticCabinet.Photon.PhotonConnector.IsMultiplayerSession</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_main_menu.html#a74d856db494a1e74dabad9e59dee8535">CrypticCabinet.UI.Modal.MainMenu.OnSinglePlayerPressed()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa3c7e353cadf24f7d2f7a9773e7c9c05" name="aa3c7e353cadf24f7d2f7a9773e7c9c05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3c7e353cadf24f7d2f7a9773e7c9c05">&#9670;&#160;</a></span>OnHostMigrationOccured</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UnityEvent CrypticCabinet.Photon.PhotonConnector.OnHostMigrationOccured</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Occurs when a Host has changed and a new Runner needs to replace the old one. </p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_player_1_1_cryptic_cabinet_player.html#a54d0c0fae3d85134236406f87ae0fff0">CrypticCabinet.Player.CrypticCabinetPlayer.OnDestroy()</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="aa28eb3247fd924a62bedab21c5eb15a5" name="aa28eb3247fd924a62bedab21c5eb15a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa28eb3247fd924a62bedab21c5eb15a5">&#9670;&#160;</a></span>IsMultiplayerSession</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CrypticCabinet.Photon.PhotonConnector.IsMultiplayerSession</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>True if the current session is multiplayer. False if the current session is single player. </p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_wait_for_guests_1_1_wait_for_guests_phase.html#ad952e36894cd930e039cf5121065ebce">CrypticCabinet.GameManagement.WaitForGuests.WaitForGuestsPhase.InitializeInternal()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a2c8557afcca92a062d04eb745fac08e2">CrypticCabinet.Photon.PhotonConnector.OnSceneLoadDone()</a>, <a class="el" href="class_cryptic_cabinet_1_1_player_1_1_cryptic_cabinet_player.html#aa61d1f7ac3c16706e7a05bef3ab3418c">CrypticCabinet.Player.CrypticCabinetPlayer.Spawned()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a63df86d8cf8a6ee898f373423f32054e">CrypticCabinet.Photon.PhotonConnector.StartMultiplayerSession()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a4fd92e9b644ee2ecbda78d87362f35f0">CrypticCabinet.Photon.PhotonConnector.StartSinglePlayerSession()</a>.</p>

</div>
</div>
<a id="a4ea4d5ef75e0a434d0960f538bc89aca" name="a4ea4d5ef75e0a434d0960f538bc89aca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ea4d5ef75e0a434d0960f538bc89aca">&#9670;&#160;</a></span>JoinedActiveGameSession</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CrypticCabinet.Photon.PhotonConnector.JoinedActiveGameSession</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a4372a8aba2335e781df0543d78adefa2">CrypticCabinet.Photon.PhotonConnector.DisconnectFromRoom()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bce11842b16758a9b17f362af1eabe6">CrypticCabinet.Photon.PhotonConnector.GuestLeaveLobby()</a>.</p>

</div>
</div>
<a id="a7bc2743b95743bcb836ead71ee47b2e9" name="a7bc2743b95743bcb836ead71ee47b2e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bc2743b95743bcb836ead71ee47b2e9">&#9670;&#160;</a></span>Runner</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">NetworkRunner CrypticCabinet.Photon.PhotonConnector.Runner</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The Runner that handles all communication between this App and Photon Fusion servers. </p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_timeline_1_1_timeline_game_phase.html#ae4e5942d1c63f6b223c3325fc948c492">CrypticCabinet.GameManagement.Timeline.TimelineGamePhase.DeinitializeInternal()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a4372a8aba2335e781df0543d78adefa2">CrypticCabinet.Photon.PhotonConnector.DisconnectFromRoom()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a7bce11842b16758a9b17f362af1eabe6">CrypticCabinet.Photon.PhotonConnector.GuestLeaveLobby()</a>, <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_puzzles_1_1_sand_puzzle_game_phase.html#a2f06603ecfb746fd500af93a31ec9b11">CrypticCabinet.GameManagement.Puzzles.SandPuzzleGamePhase.InitializeInternal()</a>, <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_timeline_1_1_timeline_game_phase.html#a25df7240c937fc4b5c1c5d15ca23e9be">CrypticCabinet.GameManagement.Timeline.TimelineGamePhase.InitializeInternal()</a>, <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_wait_for_guests_1_1_wait_for_guests_phase.html#ad952e36894cd930e039cf5121065ebce">CrypticCabinet.GameManagement.WaitForGuests.WaitForGuestsPhase.InitializeInternal()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ab219cf411054df883005fffc50f64991">CrypticCabinet.Photon.PhotonConnector.IsMasterClient()</a>, <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_credits.html#ae56c43d3e5291babdfa475658d031aa6">CrypticCabinet.UI.Modal.Credits.OnBackClicked()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#a2c8557afcca92a062d04eb745fac08e2">CrypticCabinet.Photon.PhotonConnector.OnSceneLoadDone()</a>, <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ab985a7c98e8fffb3d7b5022408bb75e1">CrypticCabinet.Photon.PhotonConnector.Shutdown()</a>, <a class="el" href="class_cryptic_cabinet_1_1_puzzles_1_1_cabinet.html#af9d53b92085c700cefd4727362f5940b">CrypticCabinet.Puzzles.Cabinet.Spawned()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_game_management_1_1_game_manager.html#a0d6b27910b978085a05ffe254b303512">CrypticCabinet.GameManagement.GameManager.StartGameplay()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_photon_connector_8cs.html">PhotonConnector.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_cryptic_cabinet.html">CrypticCabinet</a></li><li class="navelem"><a class="el" href="namespace_cryptic_cabinet_1_1_photon.html">Photon</a></li><li class="navelem"><a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html">PhotonConnector</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
